import request from '@/utils/request'

// 器材详情
export function equipmentDetail(data) {
  return request({
    url: '/do?c=560104',
    method: 'post',
    data: data
  })
}

// 器材操作
export function equipmentHandle(data) {
  return request({
    url: '/do?c=560102',
    method: 'post',
    data: data
  })
}

// 器材租赁确认订单
export function equipmentLeaseConfirm(data) {
  return request({
    url: '/do?c=560301',
    method: 'post',
    data: data
  })
}

// 器材租赁记录订单详情
export function equipmentLeaseDetail(data) {
  return request({
    url: '/do?c=560205',
    method: 'post',
    data: data
  })
}

// 器材租赁导出
export function equipmentLeaseExport(data) {
  return request({
    url: '/do?c=560204',
    method: 'post',
    data: data
  })
}

// 租赁记录
export function equipmentLeaseRecord(data) {
  return request({
    url: '/do?c=560201',
    method: 'post',
    data: data
  })
}

// 器材列表
export function equipmentList(data) {
  return request({
    url: '/do?c=560103',
    method: 'post',
    data: data
  })
}

// 归还器材
export function equipmentReturn(data) {
  return request({
    url: '/do?c=560203',
    method: 'post',
    data: data
  })
}
// 归还器材金额
export function equipmentReturnMoney(data) {
  return request({
    url: '/do?c=560208',
    method: 'post',
    data: data
  })
}
// 材新增/编辑
export function equipmentSaveOrUpdate(data) {
  return request({
    url: '/do?c=560101',
    method: 'post',
    data: data
  })
}
// 器材未归还详情
export function equipmentUnReturnDetail(data) {
  return request({
    url: '/do?c=560202',
    method: 'post',
    data: data
  })
}
// 租赁规则详情
export function leaseRuleDetail(data) {
  return request({
    url: '/do?c=560004',
    method: 'post',
    data: data
  })
}
// 租赁规则操作
export function leaseRuleHandle(data) {
  return request({
    url: '/do?c=560002',
    method: 'post',
    data: data
  })
}
// 租赁规则列表
export function leaseRuleList(data) {
  return request({
    url: '/do?c=560003',
    method: 'post',
    data: data
  })
}
// 租赁规则配置新增/编辑
export function leaseRuleSaveOrUpdate(data) {
  return request({
    url: '/do?c=560001',
    method: 'post',
    data: data
  })
}
// 器材租赁取消支付
export function equipmentLeaseCancelPay(data) {
  return request({
    url: '/do?c=560207',
    method: 'post',
    data: data
  })
}
// 器材租赁继续支付
export function equipmentLeaseContinuePay(data) {
  return request({
    url: '/do?c=560206',
    method: 'post',
    data: data
  })
}
